package movee.spring.app.template.io.quality;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * openfeign通过url调用
 *
 * @author movee
 */
@FeignClient(url = "${net-quality.host}", name = "net-quality-feign", contextId = "net-quality")
@RequestMapping(value = "/netquality")
public interface NetQualityFeign {

    @PostMapping("/action/query-net-quality")
    String queryNetQuality(@RequestBody NetQualityQuery queryInfo);

}
